/*!
 * @copyright 2009-2019 Vanilla Forums Inc.
 * @license GPL-2.0-only
 */
@mixin sr-only() {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

@mixin absolute-topRight($topOffset: 0, $rightOffset: 0) {
    position: absolute;
    top: $topOffset;
    right: $rightOffset;
}

@mixin absolute-topLeft($topOffset: 0, $leftOffset: 0) {
    position: absolute;
    top: $topOffset;
    left: $leftOffset;
}

@mixin absolute-bottomRight($bottomOffset: 0, $rightOffset: 0) {
    position: absolute;
    bottom: $bottomOffset;
    right: $rightOffset;
}

@mixin absolute-bottomLeft($bottomOffset: 0, $leftOffset: 0) {
    position: absolute;
    bottom: $bottomOffset;
    left: $leftOffset;
}

@mixin absolute-fullSizeOfParent {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

@mixin absolute-middleOfParent {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
}

@mixin absolute-middleLeft($leftOffset: 0) {
    position: absolute;
    display: block;
    top: 0;
    left: $leftOffset;
    right: 0;
    bottom: 0;
    max-height: 100%;
    max-width: 100%;
    margin: auto 0;
}

@mixin absolute-middleRight($rightOffset: 0) {
    position: absolute;
    display: block;
    top: 0;
    right: $rightOffset;
    bottom: 0;
    max-height: 100%;
    max-width: 100%;
    margin: auto 0;
}

@mixin noSelect() {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
@mixin resetButton() {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
}

@mixin disabledInput {
    pointer-events: none;
    user-select: none;
    cursor: default;
    opacity: 0.5;
}

@mixin singleLineEllipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
    max-width: 100%;
}

@mixin longWordEllipsis {
    word-break: break-word;
    text-overflow: ellipsis;
    overflow-x: hidden;
    max-width: 100%;
}
